package lanou3g.myfirstapp36kr.activity;

import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.view.View.OnClickListener;

import lanou3g.myfirstapp36kr.R;
import lanou3g.myfirstapp36kr.adapter.MyMoneyAdapter;
import lanou3g.myfirstapp36kr.adapter.MyOrderAdapter;
import lanou3g.myfirstapp36kr.base.BaseActivity;
import lanou3g.myfirstapp36kr.myvolleysingleton.My;

/**
 * Created by dllo on 16/8/19.
 */
public class MyMoneyActivity extends BaseActivity {
    private TabLayout tabLayout;
    private ViewPager viewPager;
    private MyMoneyAdapter adapter;
    @Override
    protected int getLayout() {
        return R.layout.activity_myorder;
    }

    @Override
    protected void initView() {
        tabLayout = (TabLayout) findViewById(R.id.tab_my_order);
        viewPager = (ViewPager) findViewById(R.id.view_pager_myorder);
        adapter = new MyMoneyAdapter(getSupportFragmentManager());
        viewPager.setAdapter(adapter);
        tabLayout.setupWithViewPager(viewPager);

    }

    @Override
    protected void initData() {
        findViewById(R.id.iv_back_my_order).setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });

    }
}
